package com.zidian.study.activity;

import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.TextView;

import com.zidian.student.trucks.R;
import com.zidian.study.globa.ToolBarActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by GongCheng on 2016/10/14 0014.
 */

public class AboutActivity extends ToolBarActivity {
    @Bind(R.id.version_name)
    TextView versionNameTv;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setToolbarView(R.layout.toolbar_left);
        setContentView(R.layout.activity_about);
        setTitle("关于孜点");
        ButterKnife.bind(this);
        String versionName;
        try {
            versionName = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
            versionNameTv.setText(versionName + "版");
        }
        catch(PackageManager.NameNotFoundException ex) {

        }
    }
}
